HANPRO-100 Communication Driver

 

HANPRO-100 communication driver is the driver to communicate with Wireless controller HANPRO-100 model of HANCESS Co., Ltd. in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of  HANPRO-100 communication driver. 

 
<Figure 1>  Read setting example of  HANPRO-100 communication driver

Device part of  <Figure 1> input Com Port(COM18), Baud Rate(38400), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

 

HANPRO-100 communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Master ID = 0 ~ 99.

2) Read Command – Slave ID. ( ex) 1-1 )

Read Master ID value when Slave ID is 0.

3) Read Start Address Don't care.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Fixed 1.


<Table 1> is read contents and save address for each read command of HANPRO-100 communication driver.

Slave ID Read Value Save Address
0 Master ID value Start address
Slave ID (1-1,1-2 ...5-5) Slave Device status value Start address
<Table 1> Read value and save address according to Slave ID setting

Read schedule example)

READ, 1, 0, 0, 0, 1,   
READ, 1, 1-1, 0, 1, 1,

 

 If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.

 
<Figure 2> Example of  HANPRO-100 communication driver¡¯s Option dialogue box

You can set read schedule by using , , button and listbox of <Figure 2>. 

 
<Figure 3> Example of  HANPRO-100 communication driver¡¯s read schedule Add/Edit dialogue box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can change master ID, control slave device by using write settings.

  

Digital Write

Digital write and analog write have the same setting parameters except output value. 

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Master ID = 0 ~ 99.

3)  ADDRESS          Save address. (Used only when changing Master ID. Success 1, Failure 0)

4)  Extra1                  Slave Device ID.( ex) 1-1 )

         Change Master ID if Slave ID is 0.

5)  Extra2                  Don't care.

6) Value                    Slave Device control value.

          Master ID number to change if Slave ID is 0.

 

Write example 1)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : PN  EXTRA2 : 0 VALUE : 3

The setting parameter shown above is a setting example of  ID of master device 1 connected to port 0 is changed to 3.

 

Write example 2)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CD  EXTRA2 : 0 VALUE : 1

The setting parameter shown above is a setting example of  Master device 3 connected to port 0 can change the value 1 controlled (output value) of 1-1 slave device.

 

3. connection of communication cable and main power

 

Connection

Connect the HANPRO-100 Master device's USB cable to the PC.

 

<Figure 4> is appearance of  HANPRO-100 controller.

 
<Figure 4> Appearance of  HANPRO-100 controller